#########################################################################
# File Name: snownlp_text.py
# Author: caochenglong
# mail: caochenglong@163.com
# Created Time: 2017-08-16 19:26:36
# Last modified:2017-08-16 19:27:03
#########################################################################
# !/usr/bin/python3
# _*_coding: utf-8_*_
from snownlp import SnowNLP

content = '...'
s = SnowNLP(content)

print("snownlp split word")
swords = s.words
print(swords)

print("snownlp cixing")
print(*s.tags)

print("snownlp tf-idf")
print(s.tf)
print(s.idf)

print("tokenization")
print(s.sentences)

print("sentiment")
print(s.sentiments)

print("keywords")
print(s.keywords(3))

print("summary")
print(s.summary(3))
